package durst.data;

public abstract class CSDEntity {
	abstract int getId();
	
	@Override 
	public boolean equals(Object other) { // unsafe on non-db-refreshed objects or transient objects
		return other.getClass().equals(this.getClass()) && this.getId() == ((CSDEntity) other).getId();
	}
	
	@Override
	public int hashCode() {
		return getId();
	}
}
